package com.hddf.project.pojos;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "project")
public class Project {

	private Integer id;
	private Integer first_category_id;
	private Integer second_category_id;
	private Integer third_category_id;
	private String name;
	private String description;
	private String build_side;// 建设主体
	private String fund_plan;// 资金计划
	private Double fund;// 项目资金
	private String impl_time;// 项目实施时间
	private String area;
	private Short comment;// 领导批注
	private String plan;// 项目深度 (近期 或者 中远期)
	private Integer ispass;// 是否通过审核 1否 2是
	private String input_time;
	private String update_time;
	private String remarks;// 备注
	private String path;// 数据存储路径
	private String mgr_depart;// 项目主管部门
	private Integer user_id;
	private Integer history;
	private Short checkout;
	private String sign;

	private String firstCategoryName;
	private String secondCategoryName;
	private String thirdCategoryName;
	private List<ProjectDoc> docList;
	private List<ProjectImg> imgList;
	private List<ProjectTable> tableList;
	private List<ProjectApproval> approvalList;
	private List<ProjectCheck> checkList;
	private List<ProjectVideo> videoList;
	private List<ProjectOther> otherList;
	private List<Comment> commentList;
	private Comment commentv;
	private ProjectPlanItem projectPlanItem;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false, unique = true)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "first_category_id")
	public Integer getFirst_category_id() {
		return first_category_id;
	}

	public void setFirst_category_id(Integer first_category_id) {
		this.first_category_id = first_category_id;
	}

	@Column(name = "second_category_id")
	public Integer getSecond_category_id() {
		return second_category_id;
	}

	public void setSecond_category_id(Integer second_category_id) {
		this.second_category_id = second_category_id;
	}

	@Column(name = "third_category_id")
	public Integer getThird_category_id() {
		return third_category_id;
	}

	public void setThird_category_id(Integer third_category_id) {
		this.third_category_id = third_category_id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "build_side")
	public String getBuild_side() {
		return build_side;
	}

	public void setBuild_side(String build_side) {
		this.build_side = build_side;
	}

	@Column(name = "fund_plan")
	public String getFund_plan() {
		return fund_plan;
	}

	public void setFund_plan(String fund_plan) {
		this.fund_plan = fund_plan;
	}

	@Column(name = "fund")
	public Double getFund() {
		return fund;
	}

	public void setFund(Double fund) {
		this.fund = fund;
	}

	@Column(name = "impl_time")
	public String getImpl_time() {
		return impl_time;
	}

	public void setImpl_time(String impl_time) {
		this.impl_time = impl_time;
	}

	@Column(name = "area")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "comment")
	public Short getComment() {
		return comment;
	}

	public void setComment(Short comment) {
		this.comment = comment;
	}

	@Column(name = "plan")
	public String getPlan() {
		return plan;
	}

	public void setPlan(String plan) {
		this.plan = plan;
	}

	@Column(name = "ispass")
	public Integer getIspass() {
		return ispass;
	}

	public void setIspass(Integer ispass) {
		this.ispass = ispass;
	}

	@Column(name = "input_time")
	public String getInput_time() {
		return input_time;
	}

	public void setInput_time(String input_time) {
		this.input_time = input_time;
	}

	@Column(name = "update_time")
	public String getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(String update_time) {
		this.update_time = update_time;
	}

	@Column(name = "remarks")
	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Column(name = "path")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "mgr_depart")
	public String getMgr_depart() {
		return mgr_depart;
	}

	public void setMgr_depart(String mgr_depart) {
		this.mgr_depart = mgr_depart;
	}

	@Column(name = "user_id")
	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	@Column(name = "history")
	public Integer getHistory() {
		return history;
	}

	public void setHistory(Integer history) {
		this.history = history;
	}

	@Column(name = "checkout")
	public Short getCheckout() {
		return checkout;
	}

	public void setCheckout(Short checkout) {
		this.checkout = checkout;
	}

	@Transient
	public String getFirstCategoryName() {
		return firstCategoryName;
	}

	public void setFirstCategoryName(String firstCategoryName) {
		this.firstCategoryName = firstCategoryName;
	}

	@Transient
	public String getSecondCategoryName() {
		return secondCategoryName;
	}

	public void setSecondCategoryName(String secondCategoryName) {
		this.secondCategoryName = secondCategoryName;
	}

	@Transient
	public String getThirdCategoryName() {
		return thirdCategoryName;
	}

	public void setThirdCategoryName(String thirdCategoryName) {
		this.thirdCategoryName = thirdCategoryName;
	}

	@Transient
	public List<ProjectDoc> getDocList() {
		return docList;
	}

	public void setDocList(List<ProjectDoc> docList) {
		this.docList = docList;
	}

	@Transient
	public List<ProjectImg> getImgList() {
		return imgList;
	}

	public void setImgList(List<ProjectImg> imgList) {
		this.imgList = imgList;
	}

	@Transient
	public List<ProjectTable> getTableList() {
		return tableList;
	}

	public void setTableList(List<ProjectTable> tableList) {
		this.tableList = tableList;
	}

	@Transient
	public List<ProjectApproval> getApprovalList() {
		return approvalList;
	}

	public void setApprovalList(List<ProjectApproval> approvalList) {
		this.approvalList = approvalList;
	}

	@Transient
	public List<ProjectCheck> getCheckList() {
		return checkList;
	}

	public void setCheckList(List<ProjectCheck> checkList) {
		this.checkList = checkList;
	}

	@Transient
	public List<ProjectVideo> getVideoList() {
		return videoList;
	}

	public void setVideoList(List<ProjectVideo> videoList) {
		this.videoList = videoList;
	}

	@Transient
	public List<Comment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<Comment> commentList) {
		this.commentList = commentList;
	}

	@Transient
	public Comment getCommentv() {
		return commentv;
	}

	public void setCommentv(Comment commentv) {
		this.commentv = commentv;
	}

	@Column(name = "sign")
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	@Transient
	public List<ProjectOther> getOtherList() {
		return otherList;
	}

	public void setOtherList(List<ProjectOther> otherList) {
		this.otherList = otherList;
	}

	@Transient
	public ProjectPlanItem getProjectPlanItem() {
		return projectPlanItem;
	}

	public void setProjectPlanItem(ProjectPlanItem projectPlanItem) {
		this.projectPlanItem = projectPlanItem;
	}

}
